From: David Härdeman Date: Sun, 30 Nov 2025 18:34:08 +0000 (+0100) Subject: rpcd-mod-luci: fix default odhcpd statefile location X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=338b379d4d28742d4062b7c5224292a74a155b99;p=project%2Fluci.git rpcd-mod-luci: fix default odhcpd statefile location The default location for the lease file has changed in odhcpd, update rpcd-mod-luci to reflect the new default location. See: https://github.com/openwrt/openwrt/blob/c9e7f32c4c09277ae945299d068230226994c19c/package/network/services/odhcpd/files/odhcpd.defaults#L29-L31 Signed-off-by: David Härdeman --- diff --git a/libs/rpcd-mod-luci/src/luci.c b/libs/rpcd-mod-luci/src/luci.c index 460102ff4c..f5527a8a94 100644 --- a/libs/rpcd-mod-luci/src/luci.c +++ b/libs/rpcd-mod-luci/src/luci.c @@ -466,7 +466,7 @@ lease_open(void) add_leasefile("/tmp/dhcp.leases", false); if (!find_leasefiles(uci, true)) - add_leasefile("/tmp/hosts/odhcpd", true); + add_leasefile("/tmp/odhcpd.leases", true); uci_free_context(uci); }